import Vue from 'vue'
import Router from 'vue-router'
import login from "../components/common/login";
import banner from "../components/common/banner";
import detail from "../components/detail/index"
import pay from "../components/common/pay";
Vue.use(Router)

export default new Router({
  model: 'hash',
  routes: [
    {
      path:'*',
      redirect: '/index'
    },
    {
      path: '/index',
      name: 'index',
      component: banner
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/detail',
      name: 'detail',
      component: detail
    },
    {
      path: '/pay',
      name: 'pay',
      component: pay
    },
  ]
})
